package Data;

public enum RobotState {
	GetNewDirektion(0),
	MoveToRequest(1),
	MoveToRespons(2),
	CrumbRequest(3),
	CrumbResponse(4),
	MineralRequest(5),
	MineralRespons(6),
	SignalRequest(7),
	SignalResponse(8),
	IsHomeRequest(9),
	IsHomeResponse(10);
	
	
	
	private int code;
    public static int directionLength = 11;
    
	private RobotState(int c) {
		   code = c;
		 }
	public int getCode() {
		   return code;
		 }
	
	 public static RobotState getDirection(int code) {
		   switch(code) {
		    case 0: return GetNewDirektion;  
		    case 1: return MoveToRequest; 
		    case 2: return MoveToRespons;
		    case 3: return CrumbRequest;
		    case 4: return CrumbResponse;
		    case 5: return MineralRequest;
		    case 6: return MineralRespons;
			case 7: return SignalRequest;
		    case 8: return SignalResponse;
			case 9: return IsHomeRequest;
		    case 10: return IsHomeResponse;
		    default: return GetNewDirektion;
		   }
		 }

}
